#pragma once
#include <Poco/Net/HTTPRequestHandler.h>
#include <memory>

class PageRequestHandler : public Poco::Net::HTTPRequestHandler
{
public:
	PageRequestHandler();
	~PageRequestHandler();

	void handleRequest(
		Poco::Net::HTTPServerRequest& request,
		Poco::Net::HTTPServerResponse& response) override;

	void read_and_send(Poco::Net::HTTPServerResponse& response, const std::shared_ptr<std::ifstream> &ifs);
};

